import { defineStore } from 'pinia';

export const useCounterStore = defineStore('counter', {
    state: ()=> ({
        // 定义状态
        count: 0
    }),
    actions: {
        // 定义操作
        increment() {
            this.count++;
        }
    }
})